package com.disputemanager.listeners;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;

import org.apache.log4j.Logger;

public class IncomingAppRequestListener implements ServletRequestListener {
	
	private final Logger LOGGER = Logger.getLogger(IncomingAppRequestListener.class);

	@Override
	public void requestInitialized(ServletRequestEvent arg0) {
		LOGGER.info("Connected : "+arg0.getServletRequest().getRemoteAddr());

	}
	
	@Override
	public void requestDestroyed(ServletRequestEvent arg0) {
		LOGGER.info("Connection Destroyed : "+arg0.getServletRequest().getRemoteAddr());

	}

}
